package com.atguigu.eduservice.client;


import com.atguigu.commonutils.vo.UcenterMemberVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: shy
 * @Date: 2021/06/20/20:10
 * @Description:
 */
@Component
@FeignClient(value = "service-ucenter", fallback = UcenterClientImpl.class)  //指定调用的服务名，前提要注册到nacos注册中心中
public interface UcenterClient  {

    //@PathVariable注解一定要指定参数名称，否则出错
    @PostMapping("/educenter/member/getMemberInfoById/{memberId}")
    public UcenterMemberVo getMemberInfoById(@PathVariable String memberId);

}